import { createRouter, createWebHistory } from 'vue-router';
import ItemView from '../components/ItemView.vue';
import SellItemView from '../components/SellItemView.vue';
import ProfileView from '../components/ProfileView.vue';

const routes = [
  { path: '/buy', component: ItemView },
  { path: '/sell', component: SellItemView },
  { path: '/profile', component: ProfileView },
];

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
});

export default router;